extends "../zhenming-3/zhenming-3.gd"


var baseId = ""
var upText1 = "威慑伤害提高50%"
var upText2 = "烈光武勋伤害提高35%"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("对敌方单位首次炮击时，额外造成[炮击*3]的必定暴击技能伤害(每名敌人触发一次)", "威慑")
var p4 = 1
var atkedChas = []
func _onBattleEnd():
	._onBattleEnd()
	atkedChas.clear()

func _onAtkInfo(atkInfo):
	._onAtkInfo(atkInfo)
	if not atkedChas.has(atkInfo.hitCha) and atkInfo.atkCha == self:
		atkedChas.append(atkInfo.hitCha)
		var dmg = att.atk * (2 + att.criR) * 3
		azurHurtChara(atkInfo.hitCha, dmg, sys.HurtType.WEAPON, Chara.AtkType.SKILL, "威慑", false, p4)

func upgrade():
	.upgrade()
	if upgraded == 1:
		p4 = 1.5
	if upgraded == 2:
		p2 = 1.35